package com.aaa.system.mapper;

import com.aaa.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper extends BaseMapper<Menu> {
    List<Menu> selectByUserid(Long userid);

    List<Menu> findLeftMenu(String phone);

    List<Integer> getMenuByUserId(Long roleId);

    void deleteByRoleId(Long roleId);

    void batchInsert(@Param("roleId") Long roleId,@Param("menuIds") Long[] menuIds);

    void delRM(Long menuId);
}
